from django.contrib import admin

from courses.models import Course, CourseNavRelation


# Register your models here.
@admin.register(Course)
class CourseAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'status',
                    'course_type', 'price',
                    'original_price',
                    'pub_date',
                    'pub_lessons',
                    'students',
                    'teacher', 'level', 'lessons','attachment_path','description','outcomes','audience')

@admin.register(CourseNavRelation)
class CourseNavRelationAdmin(admin.ModelAdmin):
    list_display = ('id', 'course', 'nav_category')


class TeacherCourseAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'title', 'avatar', 'brief')
